Wraps a nkAstraeus::ArrayData<nkGraphics::Vector> and offer functions for use in scripting.
More...
Wraps a nkAstraeus::ArrayData<nkGraphics::Vector> and offer functions for use in scripting.
◆ updateEnvironment()
Updates a given environment and set it up to use all functions wrapped by this wrapper.
- Parameters
-
env | The environment to set up. |
◆ constructor()
Wrapper function for the constructor of the user type.
local t = nkVectorArray.new(10) ;
- Parameters
-
stack | The parameter stack, containing an int for the size of the array wanted. |
- Returns
- An output value with the user type and data allocated.
◆ destructor()
static void nkAstraeus::lua::VectorArrayWrapper::destructor |
( |
void * |
toDestroy | ) |
|
|
static |
Wrapper function for the destructor of the user type.
- Parameters
-
toDestroy | The data that has to be freed. |
◆ getData()
Wrapper function for the ArrayData::_ptr attribute reading.
local d = t.data ;
- Parameters
-
data | The data from which the attribute will be retrieved. |
- Returns
- The attribute value, as a nkAstraeus::ArrayData<nkGraphics::Vector>.
◆ getSize()
Wrapper function for the ArrayData::_size attribute reading.
local d = t.size ;
- Parameters
-
data | The data from which the attribute will be retrieved. |
- Returns
- The attribute value.
◆ subView()
The documentation for this class was generated from the following file: